package com.tyk.bookstore.front.system.model.vo;

import com.tyk.bookstore.front.common.core.util.FileUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author tyk
 * @description 轮播图
 */
@Data
public class CarouselVo {

    @Schema(description = "ID")
    private String id;

    @Schema(description = "路径")
    private String path;

    @Schema(description = "关联链接")
    private String link;

    public CarouselVo setPath(String path) {
        this.path = FileUtil.fullFilePath(path);
        return this;
    }
}
